package com.pww.movie.service;

import com.pww.movie.domain.DTO.UserLikeDTO;
import com.pww.movie.domain.PO.Media;
import com.pww.movie.domain.PO.UserLike;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pww.movie.utils.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pww
 * @since 2025-06-13
 */
public interface IUserLikeService extends IService<UserLike> {

    /**
     * 用户点赞
     *
     * @param userLikeDTO
     * @return
     */
    Boolean like(UserLikeDTO userLikeDTO);

    /**
     * 用户取消点赞
     *
     * @param userLikeDTO
     * @return
     */
    Boolean unlike(UserLikeDTO userLikeDTO);


    /**
     *  获取用户点赞的媒体
     * @param mediaType
     * @return
     */
    List<Media> getUserLikedMedia(String mediaType);
}
